<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>个人信息</title>
		<meta name="decorator" content="cms_default_${site.theme}"/>
		<meta name="description" content="ccjzxyxt ${site.description}" />
		<meta name="keywords" content="ccjzxyxt ${site.keywords}" />
		<script src="${ctxStatic}/front/js/jquery_percenter.js" type="text/javascript"></script>
		<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp"%>
	</head>
	<body style="background: #f8f8f8;">
        <!--content-->
        <div class="wrap">
        	<div class="perleft">
				<sys:message content="${message}" hideMsgBox="true"/>
        		<ul>
					<c:if test="${user.userType eq '1'}">
						<li class="on"><a href="${ctxAdmin}/sys/user/info?origin=front">个人信息</a></li>
						<li><a href="${ctxAdmin}/sys/user/modifyPwd?origin=front">修改密码</a></li>
					</c:if>
					<c:if test="${user.userType ne '1'}">
						<c:forEach items="${fns:getNavMenuList()}" var="menu">
							<li class="${requestScope.menu.id eq menu.id ? 'on' : ''}"><a href="${ctxAdmin}${menu.href}?origin=front" target=""><span>${menu.name}</span></a></li>
						</c:forEach>
					</c:if>
        		</ul>
        	</div>
        	<div class="perright">
				<div class="percenter">
					<form:form modelAttribute="user" action="${ctxAdmin}/sys/user/info?origin=front" method="post">
						<input type="hidden" name="name" value="${user.name}"/>
						<input type="hidden" name="id" value="${user.id}"/>
						<input type="hidden" name="remarks" value="${user.remarks}"/>
						<%--<input type="hidden" name="photo" value="${user.photo}"/>
						<p><span>头像：</span><i><img src="${user.photo}"></i></p>--%>
						<div class="control-group">
							<p><span>头像：</span>
								<div class="controls">
									<form:hidden id="nameImage" path="photo" htmlEscape="false" maxlength="255" class="input-xlarge"/>
									<sys:ckfinder input="nameImage" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
								</div>
							</p>
						</div>
						<p><span>归属部门：</span><i>${user.office.name}</i></p>
						<p><span>姓名：</span><i>${user.name}</i></p>
						<p><span>邮箱：</span><i><input class="bjinput emailinput" type="text" name="email" value="${user.email}" placeholder="${user.email}"></i><img src="${ctxStatic}/front/images/bj.png" class="emailbtn"></p>
						<p><span>手机：</span><i><input class="bjinput telinput" type="text" name="mobile" value="${user.mobile}" placeholder="${user.mobile}"></i><img src="${ctxStatic}/front/images/bj.png" class="telimg"></p>
						<p><span>备注：</span><i>${user.remarks}</i></p>
						<p><span>用户类型：</span><i>${fns:getDictLabel(user.userType, 'sys_user_type', '无')}</i></p>
						<p><span>用户角色：</span><i>${user.roleNames}</i></p>
						<p><span>上次登陆IP：</span><i>${user.oldLoginIp}</i></p>
						<p><span>上次登陆时间：</span><i><fmt:formatDate value="${user.oldLoginDate}" type="both" dateStyle="full"/></i></p>
						<%--<a href="#" class="btn">修改</a>--%>
						<input class="btn" type="submit" value="修改"/>
					</form:form>
				</div>
        	</div>
        </div>
	</body>
</html>
